import { createRouter, createWebHashHistory } from "vue-router";

const router = createRouter({
	history: createWebHashHistory(),
	routes: [
		{
			path: "/home",
			name: "Home",
			component: () => import("@/pages/Home.vue")
		},
		{
			path: "/testPinia",
			name: "TestPinia",
			component: () => import("@/pages/TestPinia.vue")
		},
		{
			path: "/count",
			name: "Count",
			component: () => import("@/pages/Count.vue")
		},
		{
			path: "/",
			redirect: { name: "Home" }
		},
		{
			path: "/:pathMatch(.*)",
			name: "NotFound",
			component: () => import("@/pages/NotFound.vue")
		}
	]
});


export default router;